home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / RAID0.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  589b  |  28 lines

  1. #ifndef _RAID0_H
  2. #define _RAID0_H
  3.  
  4. struct strip_zone
  5. {
  6.   int zone_offset;        /* Zone offset in md_dev */
  7.   int dev_offset;        /* Zone offset in real dev */
  8.   int size;            /* Zone size */
  9.   int nb_dev;            /* Number of devices attached to the zone */
  10.   struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
  11. };
  12.  
  13. struct raid0_hash
  14. {
  15.   struct strip_zone *zone0, *zone1;
  16. };
  17.  
  18. struct raid0_data
  19. {
  20.   struct raid0_hash *hash_table; /* Dynamically allocated */
  21.   struct strip_zone *strip_zone; /* This one too */
  22.   int nr_strip_zones;
  23.   struct strip_zone *smallest;
  24.   int nr_zones;
  25. };
  26.  
  27. #endif
  28.